package main

import (
	"fmt"
	"fyne.io/fyne/v2/data/binding"
	"time"
)

func main() {

	val := binding.NewString()
	callBack := binding.NewDataListener(func() {
		str, _ := val.Get()
		fmt.Println("String change to :", str)
	})

	val.AddListener(callBack)
	time.Sleep(time.Millisecond * 100)
}
